# -*-encoding: utf-8 -*-

from celery import Celery
from yxproject.views.utils.Email import MyEmail


app = Celery('EmailTasks', broker='redis://:lczgywzyy@localhost:16379/0')

@app.task
def sendEmailByQueue(receiver, string):
    MyEmail.sendEmails(receiver, string)
